button shows up, function is not defined