finish server code of option and list