Remove console.log statement
Automatically display new habit dialog if habits are empty

+ also add more robust check of when to allow saving
Minor tweaks and bug fixes