Made the filter work only for the specified actions
Merge pull request #1 from bangthetable/only_for_actions

Made the filter work only for the specified actions
Removed unnecessary condition
Merge pull request #2 from bangthetable/remove_condition

Removed unnecessary condition
removed ununsed variable 'action'