In addition to the ink tube and spring on the bottom, the capping station is held in place with plastic guides that keep it where it needs to be. If the capping station is disconnected from the guides, and pops up like a “Jack in the Box” like you’re explaining, then you’re going to need to take off the printer cover in order to see and access the capping station area to reconnect it.
I recommend you get the service manual, from www.2manauls.com, which will walk you thru removing the printer’s cover. With the cover off, you’ll be able to push the capping station back down, then into the guides to keep it where it should be.
I hope this helps, best~ Dana