Alter dashboard and protect the code if whoosh is not installed.

Leo build: 20140920121149