slim code on homepage cleaned up