changed to duration instead of start time added helpers to appointments