updated css and js to handle dragging and format a bit