change tilecoord to ui layout