refactor comamnd list and add recent commands