Adding render thread
GUI WIP