Added the possibility to pass data to views