Setup index page and fix mongodb