added index and show in controller, and created rest

all in the title