solved scrolling problem in layouts