margin fixing and open outside tab