added filter in pages controller