create site modal window, few refactorings