switching between activies and accessing menu preferences