Refactored the code for Landing page.