working create view script