better cross browser compatibility for flex