added index and new action for todos