added index view and moded script