*.buttons method seems deprecated.

f.buttons seems deprecated, replaced it with f.actions and it seems to work now !
Merge pull request #1 from Galaad-Gauthier/patch-1

*.buttons method seems deprecated.