moved tag list code into helpers