added new view creation code