design index page and register page