TApplication header included to be able to call gApplication variable