Fix odd issues with GUI and clean up FramebufferManager.cpp