mainactivity should be the parent of ideactivity. closes #1