fixing the spans for buttons