basic save functionality in habit edit view