modify modal to toggle