Made buttons generated by template