updated styles and javascript code