main view

finish functions for main view