Adding UI and backend with web sockets
Refactoring code in filter