rafactored result code and added container for result links