Updated Code with Async HTTP Task and Application Class