Completed first stage of widget, which covers most scenarios of EA.