added pause button and some style/display refactoring