Glue will one of two things. It will either stick it permanently, or not at all. Neither of those is really desirable. What you want is a semi-permanent attachment - that's why these things are held in place by screw fasteners.
Could you glue velcro strips to both the controller and the tank. That way, you get the best of both worlds - semi permanent.