implemented tablet ui + alot of other stuff