cleaning up view creation