migrated ACP themes page from html rendered via js to template engine