Swc-1889: rewrite access restriction ui

will not need this when the code just asks the controller if logged in.