Cas: edit habit functionality implemented.