redirect to main page if there are no messages