Prevent recursion and modify other button objects