workin on the view mode