Update application class to handle https