Fixed bugs with scrolling and tabs