clean up code

1. make sure tags balance
2. handle lack of links in dashboard