added an effect to home page bg and refactored a directive