setting up sidebar scripts
fixed problem with sidebar cutting off on scroll