reimplemented the add company js
fixed merge conflicts