added <def index end> into the controller file