how to write code for widget as calculator without use layout