adding preAuthorize conditional to views