made frosted glass effect into its own class and refactored