Fix #1
fix hiding the panel