added start of immediate mode UI support, added some fixes for fff etc.