It only checks for IMs when you click post a new topic, post reply, edit post, or click on a forum. Thats the only times it checks for IMs. As for it reloading the main page...no clue why that would happen.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.