Fixing tab 2 generate button