added getIcon function for buttons