pseudo code and semantic ui changes