Added margin to legend