attach and detach tag for a post