Update button and add scroll function