resetPanel method is now working