Switching isAuthorized to a property
Getting rid of unintentional two way binding effect
Rearranging code
Fixing error introduced by mismatched tags