mongo error handling and theme viewing