removed extraneous app definition from home function