updating with davids change for back button