added buttons to ticket generator and added functionality to editable functions