added auto-positioning rules for several programs