Fixed unused parent warnings
Refactored QML regarding close icon