added sample function to translate intent and change the background color