Added switch for orientation and changed to use QtQuick module