This is a highly UI related function and only be used in wifi panels, i think it is okay to leave them here.