Added authorization checks to buttons