fix ajax spinner on key generate