added styles and fixed js