Use hide instead of close