Home page empty, Is this some security feature?

Here is my code, I dont understand why my home page is empty I have implemented the vaadin security feature so if i dont add “@AnonymousAllowed” it will route to the login page

package com.pack.website.views;

import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.html.H1;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.server.auth.AnonymousAllowed;

@PageTitle("Home Page")
public class HomeView extends VerticalLayout {

    void HomeView() {
        Button loginButton = new Button("Login");

        loginButton.addClickListener(buttonClickEvent -> {
            loginButton.getUI().ifPresent(ui ->
        add(new H1("Home View"), loginButton);


Fixed I changed it from ‘void homeview()’ to just ‘homeview()’