Added authorization request code to allow button click