added __construct() to all models and controllers