add filter method for controller. fix #14