Made gui more succint and efficient, took out automatic frame buffer regeneration each time.