buttom style template + cleanup code