Rootmode fix in mainactivity and layout fixes