add index and error page