custom markers and refactor main.js