directive selects default view if none was selected