changed css to avoid unneccessary scrolling