changed view creation

changed view creation