delete a command

- long press a command to delete (no animation)
- clean up some code formatting