generator and rule buttons interactive