fixed missing end in plans controller