commit draft funtionality