changed correlation page to adapt to window size