make drawing of gui optional
dock frame id errors
gui switch