Properly display alert messages

See #51