added pause functionality for styling