Fix invited layout and function