toggleModal() now explicitly accepts an argument of 1 (on) or 0 (off)