store selecetd submode