Added collapsable offline tab and fixed some bugs.