Clean up view code.

Signed-off-by: Maël Lavault <mael.lavault@mailz.org>