adding changePanel method