restyling and adding pause functionality