gallery and upload tabs. Https redirection