Moved msot functionalities from old controller to NotezNote