added delete app function