before changing option input