implementing view and filtering