edited timer a little bit

made it global and .cancel in save btn click