Switching back to main panel

Now corrected the test button so that it switches back properly.