updated view for main page