Created gender select qml component and fixed state reset issue when selecting gender