fixed enabling disablling issue and added dashed borders in Editor mode