added 404 tpl, fix for 404 on topics, continuing refactor - categories