added tab functionality. working on dragging out and dragging in