Added backPressed handler