making scroll buttons functional