fix css overflow and script structure