Refactorings. Added title method to pop up windows.
Removed useless interfaces, brought code closer together