updated javascript and added back feature on show page