refactored using js
changed layout