autocompletion + category add
template category bugfix #400