Added code to allow things to be drawn in the tabs