made a function for updating widget, removed toasts, added widget preview