restored mainactivity

not sure what happened in your last commits, but mainactivity was
overwritten to a previous version