fixed highlighting and sizing bugs