added friend list to table
changing architecture
added delegate in the code