created public controller and public layout