added type and subtype optins for typePie and subtypePie, need to fix to be able to draw the changes of them