add basic scroll function