Fixes for splitpane and draw api