Updated to add delete application functionality