added stick top-bar and made changes to implement it properly
added sticky bar and refactored code