Buttons are created dynamically, but the path to go to the details is not correct.