creating funtioning home page