working on toggle and cancel