made homepage functional