update calc so the back button works properly on touch devices