fixing output on messages page