add a method that after authentication page shown execute callback method