refactored contact list table to nested class