ui and code for home page