added spoiler button function