adds view mode selector support