Changes way to set button actions

New public property `actionForIndex`, which is of type [Int : ()->()]
Now the buttons can be set manually by changing this dictionary.