Merge pull request #4 from maxstudener/master

Bug fix for saving relations
open last tab on tab close and visual changes to tabs