Move context menu stuff out of MainActivity

Will probably need to move it back when converting to ListActivity