added index file to public and subjects controller for tutorial