moving tagview code into own file