Fixed bug with hide on add fields and added state.getCtx