removed unneeded varaible and logic from homepage controller