panel now correctly refreshes