Added function for changing background opacity

Added Function to change the background opacity.