working with views and frames