Duplicated menu code removed. Index implemented.