added styles and js code