added JS button functions