Fixing alignment in mobile template

Addresses #514