added top and span elements