active tabs and habtm relations