added redirect in homecontroller index()