apply common view filters to main function also