adding functionality to home page