Some improvements

Some improvements for QupZilla that I need them to fix some issues of TabManager plugin.