Added method to dock/undock QML