Solved issue of page not showing on click of button