added deck settins open and closing functionality