Zoloft

Hi I have been on Zoloft 25 mg for almost 2 months tried to bump to 50 mg but starting getting weird headaches so went back down they went away , However I always take at night because it would make me sleepy but noticed recently started to cause insomnia , how do I transition to morning has anyone experienced this ?

has it helped