web getMessages and make tempalte show messages