updated css and fixed js bug