error handling in index page