added item function to app