Adding Main Page Functionality