Starting code for widget