made homepage changes and error handling