Added generate and clear button scripts + UI