tabs are now implemented, draw function improved a lot