Update JS for managment back button and refresh button