Fix a small bug
Move layout logic in "settings" page to jade template.