indexes and buttons to actions