Fix idea controller and add idea functionality