Filtering added, code cleaned up

Added a filter feature to the backlog, and cleaned up multiple
notifications php code gave in test server