added CustomApplication class