Adding adapters and creating UI for displaying messages