making the homepage to show by slideup and slidedown, and change the header's background color when clicking navagation bar