working add marker functionality