put styles in separate file, fixed weird style refresh issue, fixed unpause bug