Fully implemented algorithm of switching active StandardPanel