Am I doing something wrong?

My boyfriend acts like he’s really into me being on top, but he for some reason does not get hard with me on top. If he does, it comes and goes right away. Is it something I’m doing? Or something I’m not doing? Seems like he can only stay hard if he’s on top but sometimes, I want to be in control. Any tips?