generalize data helpers into module, fix tags menu