functionality for fanbutton