cleaned up code in home page