Working implementation of deleteNote
Implementation is a bit clumsy. Will probably refactor this better
as I understand better the app