re enable input in modal hide rather than hidden