added loop over available messages
added server-side template for message page