added conditional styles