[Refactor] Footer logic  into  StateDataService / Add possibility to add dependency annotated functions as state data
[Clean] Remove console.logs