Refactored inListActionHandler to commandHandler because it's meant to
handle now all commands for the entire program