Reduced nasty copy-paste plus tweaked some styles in sample app.