modified the contact controller