refactor new mneme template+controller