Refactor logic
Add quick way to exit link adding
Remove duplicated logic
Fix resizing filled bug

Before when the category was expanded the other links could still occupy
the now filled cells.  Likewise when the category was shrunk links could
not fill this space that was then unoccupied.