Bug Fix: edit note activity

fixed cancel button issue
fixed issue with retaining database key_id