cleaned index and created an controller and a frontend layout and also added a global footer