Adding view method for customer and admin