updated generate button and selecting from grant gui