fixed maximize behaviour and style extender