refactored polymer components  and displaying os demo