implemented filter in edit page