add functionality to addnew controller