switched from div with inline-block to span for the messages