fixes to postcottroller tags function