implement margin for buttons