fixed deprecated .find to .find_by_id in index controller