Separate ui and webservice