main view buttons with logic added