localhost ssl, refactoring frontend