fix frontend templates and config