created enable and disable function

Signed-off-by: Lorenzo Fontana <lord.fontana@gmail.com>