Work item modal

* make work items use same modal regardless of their type.
* and minor refactoring