save authorization and show appropriate pages