added confirmation message and fixed back to home button