added index page and modified model