Fix problems with mobile site

Closes #328