Added a parameter '&mut App' to command closure