Refactoring. Added dialog to change general TP settings.
Moved inline css to main.css