formatted code and added listener on PrimeFaces theme changed