added api call for viewing list of commands