how to modernize legacy applications UI