add custom compound and viewgroup