fixing bug with executing functions on appended buttons