Closing popup resets sidebar data