major update to support more type of relationships
extracted the code for the pull to refresh