Show or hide advanced settings if it is available

Change-Id: Ib5fa08e48f663a18c3273fbfa5bec5c1e3e7473b