c++ code to create a back botton and on button click should go back to home page