prepare ui templates