updated css/js to handle inset/non-inset