fixes layout and script