update ui layout