rewrote template html and css rule for buttons