Adding trait support to the sidebar element