storeing the id as data for back button