fixed bug where notes modal would not route properly after clicking close icon