updating styles and fixing reordering javascript