Changed gui to tabs (although code is ugly - it should be refactored in the future)