create view listener