fixed the access button
also send the requested url when asking for access
added url encoding