refactored index view and only render map once now
fixed map rendering too often and not enough