finally. did it. i've bypassed the gallery_controller pretty much completely i think. i think i need to rethink how controllers work.