Put action code into views for every action

Signed-off-by: Arnaud PETIT <arnaud.petit@minesdedouai.fr>