make contParentId method public to be able to call it from event handler