added init controller
implemented delete note remotely
Bug fixing when deleting notes