Added legend to main menu.
Added exception handling to legend block retrieval.