Added Pending Page and Logout support