Refactored names

Added skeleton code for onPause and onresume