add saveandclose and saveandnew buttons