fixed checking of slug and fixed editor styling