refactored commands and added validation display