change time to use spinner