add mode selector