add authentication.js and dynamically make active page button selected