refactor again and finish function 'generate_commands'
code refactor in frontend
handling project commands, not finished
fix a bug in delete project