added toggle functionality to the OPEN/CLOSED buttons