implement widgets ordering