Implement maximize and minimize functions of workbenchpart