added map functionality to new, show and index. need to improve new ui