changed back buttons to history.back()