moving UI outside the API app