fix toggle and transparency