Adding view handler