adding pause styles and functions