submitIdea function added to controller