And close view whatever the user selects
fix the javascript conditional, commas were a typo. Also add role error highlighting