storeData function on clicking on #style-mode function