added module pattern, index page