tidied up the idea controller and model