Right now UI files are just loaded programmatically. This is not good, we should use templates instead.