Update index with buttons.
Server code done.