Connection to webservice and layouts