added views for index and changed it to php