setup basic view handling