completed widget ordering functionality: