Fixed some issues and added pseudo function to make tabs draggable.