better view handling