Grab previous styles from query button click