updating commands based on changes