refactored style extender / style manager and fixed maximize behaviour