Addressed #29: close panel now closes when clicking on the x