added funtionality for contactcontroller