updated preview plunker and code style