fix bug in stop focus styling
improved sorting/layering of svg elements