Added client server and UI codes