itemPanel class and taskspanel class by Kristian and Kristoffer