adds proper hours editing