script changes and mobile line added for layout