Renamamed maincontroller to indexcontroller to avoid confusion, shortened URL for routes.