added implementation for friend list and message list item onclick