dynamic buttons from resource files