Refactoring selector qml