Remove needless codes for custom toolbar contents