Added a JS redirect when certificate btn is clicked