flatten reset panel; bugs