 
 (defn render-html-header
     "Renders part of HTML page - the header."
-    [word url-prefix zw-mode]
+    [word url-prefix title]
     [:head
-        [:title (if zw-mode "zw " "zg ") word]
+        [:title (str title ": " word)]
         [:meta {:name "Author"    :content "Pavel Tisnovsky"}]
         [:meta {:name "Generator" :content "Clojure"}]
         [:meta {:http-equiv "Content-type" :content "text/html; charset=utf-8"}]

        (render-html-header "" url-prefix nil) ; TODO change
        [:body
            [:div {:class "container"}
                (render-navigation-bar-section word user-name url-prefix nil); TODO change
                [:div {:class "col-md-10"}
                    [:h2 "Sorry, error occured in zg"]
                    [:p message]

    ))

(defn render-front-page
    [word user-name search-results message url-prefix title mode]
    (page/xhtml
        (render-html-header word url-prefix title)
        [:body
            [:div {:class "container"}
                (render-navigation-bar-section user-name url-prefix title mode)

                (if zw-mode
                    (form/form-to [:post (str url-prefix "add-word")]
