Killing duplicate config code

Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>
Undelegate events on changing view

Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>