Remove unused style.qss
Refactor and fix memory leaks