options selected are not getting saved