Implemented NewRepco dialog
Some refactoring