refactor poi category module - holding categories state
refactoring map.js