fixed paths for 'Delete Application' in apn/show and redirect_to in the update method of apns_controller