Added backToTop and backToBottom functions