refactor express, add index template