added ajax logout option