Replaced "logout" as button in all required pages and added the Javascript function onclick