Set visibility for alert depending its status

Closes #61.