Fixing some issues

1. a null pointer issue
2. rendering incorrect title and owner for questions in offline mode
3. html formatting for everything.