change line positiong befor Task instead of post task to avoid a line after the last task