Implements home page and add function.