homepage functions done