added index, show, new and edit project functions