You should be able to call the account preferences widget by adding a class to this button and defining it in the manifest file as a selector. This will lazy load the widget on click and enable you to remove the accountpreferences widget a bit higher up in this file.