Moved update function into the sticky-note directive simplifying my entire life