implemented home panel close action