Added constraint for the table view to resize depending on the no. of  rows.
Added flag when contact is edited to refresh the collection view