*.buttons method seems deprecated.

f.buttons seems deprecated, replaced it with f.actions and it seems to work now !