Made the commits persist when travelling to map activity