Changed how empty list messages are hidden

Instead of not outputting at all, each message is outputted with a "display: none;" style attribute. It is taken off when necessary